package com.note.chh.notebook.Uitls.gson;

import java.util.List;

/**
 * Created by Administrator on 2017/4/18.
 */
public abstract class Json {
    private static Json json;
    Json() {

    }
    public static Json get() {
                 if (json == null) {
                         json = new GsonImpl();
                    }
                return json;
            }
    public abstract String toJson(Object src);
         public abstract <T> T toObject(String json, Class<T> claxx);
        public abstract <T> T toObject(byte[] bytes, Class<T> claxx);
        public abstract <T> List<T> toList(String json, Class<T> claxx);
}
